<template>
  <div class="box fs30">
    <p :style="boxStyle.titleStyle">{{ title }}</p>
    <Circle :percent="percent" :stroke-color="boxStyle.strokeColor" :size="boxStyle.size">
      <span :style="boxStyle.numStyle" class="fs40">{{ num || "暂无数据" }}</span>
    </Circle>
  </div>
</template>

<script>
export default {
  props: {
    title: "",
    num: null,
    percent: {
      default:100
    },
    boxStyle: {
      default: () => {
        return {
          titleStyle: null,
          strokeColor: null,
          numStyle: null,
        };
      },
    },
  },
  data() {
    return {};
  },
};
</script>
<style scoped lang="scss">
@import "../../../styles/index.scss";
.box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  p {
    display: flex;
    align-items: center;
    margin: 0;
    margin-bottom: 2%;
    .picon {
      margin-right: 10px;
      display: block;
      width: 20px;
      height: 20px;
      border-radius: 5px;
    }
  }
  span {
    font-weight: 700;
  }
}
</style>
